//请求存放地
import axios from './tools/axios'
import {useStore} from './store/pinia'
import emitt from './tools/emitt'

/*
    例如: export const getUserInfo = async(params) => axios.get('/user/info', params)
    
    ——————需要标注代码注释，越详细越好——————
*/

//登入--邵文凯
export const loginAPI = async(params) => axios.post('/phoneLogin', params)

//发送验证码--邵文凯
export const sendCodeAPI = async(params) => axios.post('/sendCode', params)

//发送邮箱--邵文凯
export const sendEmailAPI = async(params) => axios.post('/sendEmailAPI', params)

//密码登入--邵文凯
export const PsswordLoginAPI = async(params) => axios.post('/PsswordLoginAPI', params)

//找回密码--短信找回--邵文凯
export const updatePasswordAPI = async(params) => axios.put('/updatePasswordAPI', params)

//找回密码--邮箱找回--邵文凯
export const EmailUpdatePasswordAPI = async(params) => axios.put('/EmailUpdatePasswordAPI', params)